<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Sprotty Custom Views Showcase</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/page.css">
</head>

<body>
    <div class="container">
        <div class="row" id="sprotty-app" data-app="custom-views-showcase">
            <div class="col-md-10">
                <h1>Sprotty Custom Views Showcase</h1>
                <p>This example demonstrates different patterns for creating custom views in Sprotty diagrams.</p>
            </div>
            <div class="help col-md-2">
                <a href="https://sprotty.org/docs/recipes/custom-views/">Custom Views Recipe</a>
            </div>
        </div>

        <div class="explanation">
            <h2>View Patterns Demonstrated</h2>
            <p>This diagram shows various approaches to creating custom views in Sprotty:</p>
            <ul>
                <li><strong>Basic Custom Views:</strong> Top row - Simple geometric shapes (circle, triangle, diamond)
                    created from scratch using SVG elements</li>
                <li><strong>Enhanced Views:</strong> Second row - Extended rectangular nodes with status indicators,
                    borders, and decorations</li>
                <li><strong>Complex Views:</strong> Third row - Compositional views with headers, bodies, and footers
                    demonstrating reusable view components</li>
                <li><strong>Stateful Views:</strong> Bottom row - Conditional rendering based on node state (idle,
                    loading, success, error)</li>
                <li><strong>Custom Edges:</strong> Styled edges with different line styles (solid, dashed, dotted),
                    colors, and animations</li>
            </ul>
        </div>

        <div class="row">
            <div class="col-md-12">
                <div id="sprotty" class="sprotty"></div>
            </div>
        </div>


        <div class="copyright">
            &copy; 2025 <a href="https://www.typefox.io/">TypeFox GmbH</a>.
        </div>
    </div>

    <script src="../resources/bundle.js"></script>
</body>

</html>